using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ImgProcessGui;

namespace ImgIdenPro
{
    public partial class ConfigFrm : Form
    {
        public ConfigFrm()
        {
            InitializeComponent();
        }

        private void ExitBtn_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void ApplyCnfgBtn_Click(object sender, EventArgs e)
        {
            progParametes.Instance.Path2Classify = this.Path2Classify.Text;
            progParametes.Instance.DataPics =  this.DataPics.Text;
            progParametes.Instance.DictionaryPath = this.Dictionary.Text;
            progParametes.Instance.DictionaryPicsPath = this.DictionaryPics.Text;
            progParametes.Instance.Results = this.Results.Text;
            progParametes.Instance.Save();
        }

        private void ConfigFrm_Load(object sender, EventArgs e)
        {
            this.Path2Classify.Text = progParametes.Instance.Path2Classify;
            this.DataPics.Text = progParametes.Instance.DataPics;
            this.Dictionary.Text = progParametes.Instance.DictionaryPath;
            this.DictionaryPics.Text = progParametes.Instance.DictionaryPicsPath;
            this.Results.Text = progParametes.Instance.Results;
        }
    }
}